package com.huc.netty.constants;

/**
 * @author huc
 * @version 1.0
 * @note 序列化类型
 * @date 2021/9/16 9:51
 */

public enum SerialType {

    JSON_SERIAL((byte) 1),
    JAVA_SERIAL((byte) 2);

    private byte code;

    SerialType(byte code) {
        this.code = code;
    }

    public byte code() {
        return this.code;
    }
}
